package main

import (
	"fmt"
	"leetcode/28/solution"
)

// 28题
// 实现 strStr()
// https://leetcode-cn.com/problems/implement-strstr/

func main() {
	var (
		haystack1 = "hello"
		needle1   = "ll"
		haystack2 = "abc"
		needle2   = "c"
	)

	// 方案1
	fmt.Println(solution.V1(haystack1, needle1))

	fmt.Println(solution.V1(haystack2, needle2))
}
